{
  "@visokiotype": "QueryApi.RangeQuery",
  "range": {
    "start": 0,
    "length": 10
  },
  "input": {
    "@visokiotype": "QueryApi.SortQuery",
    "sorts": [
      {
        "inputField": "Composite Rating",
        "direction": "ASCENDING"
      },
      {
        "inputField": "Ticker (MIN)",
        "direction": "DESCENDING"
      },
      {
        "inputField": "Coupon",
        "direction": "DESCENDING"
      }
    ],
    "input": {
      "@visokiotype": "QueryApi.AggregateQuery",
      "groupings": [
        {
          "inputField": "Composite Rating"
        },
        {
          "inputField": "Is Perpetual"
        },
        {
          "inputField": "Maturity Date"
        },
        {
          "inputField": "Coupon"
        }
      ],
      "measures": [
        {
          "inputField": "Market Price",
          "function": "SUM"
        },
        {
          "inputField": "Model Yield",
          "function": "MEAN"
        },
        {
          "inputField": "Ticker",
          "function": "MIN"
        },
        {
          "inputField": "Ticker",
          "function": "MAX"
        },
        {
          "inputField": "Is Split",
          "function": "SINGLETON"
        },
        {
          "function": "RECORD_COUNT"
        }
      ],
      "input": {
        "@visokiotype": "QueryApi.RecordFilterQuery",
        "filter": {
          "type": "AND",
          "filters": [
            {
              "type": "FIELD_VALUE",
              "inputField": "Category",
              "operator": "=",
              "value": "Subordinated"
            },
            {
              "type": "FIELD_VALUE",
              "inputField": "Coupon",
              "operator": ">=",
              "value": 1.5
            },
            {
              "type": "FIELD_VALUE",
              "inputField": "Issue Name",
              "operator": "!="
            },
            {
              "type": "FIELD_VALUE",
              "inputField": "Composite Rating",
              "operator": "IN",
              "value": [
                "A",
                "A-",
                "A+",
                "AA",
                "AA+",
                "AA-",
                "AAA"
              ]
            },
            {
              "type": "NOT",
              "filters": [
                {
                  "type": "OR",
                  "filters": [
                    {
                      "type": "FIELD_VALUE",
                      "inputField": "Composite Rating",
                      "operator": "=",
                      "value": "MIDDLE EAST"
                    },
                    {
                      "type": "FIELD_VALUE",
                      "inputField": "Composite Rating",
                      "operator": "=",
                      "value": "EUROPE"
                    }
                  ]
                }
              ]
            }
          ]
        },
        "input": {
          "@visokiotype": "QueryApi.DefaultQuerySource"
        }
      }
    }
  }
}